(function (_super) {
    var EVENT_CLICK = Laya.Event.CLICK;
    var io = ppt.io;

    function RechargeNum() {
        RechargeNum.super(this);
        this.init();
    }
    Laya.class(RechargeNum, "Com.Recharge.RechargeList", _super);
    var _proto = RechargeNum.prototype;

    _proto.init = function () {
        this.on(Laya.Event.CLICK,this,this.chongZhi);
    }
    //充值
    _proto.chongZhi = function () {
        var index;
        if(this.x==(320*0 + 30)){
            index = 0;
            this.reImage.skin = 'res/recharge/icon_diamond1';
        }else if(this.x==(320*1 + 30)){
            index = 1;
            this.reImage.skin = 'res/recharge/icon_diamond2';
        }else if(this.x==(320*2 + 30)){
            index = 2;
            this.reImage.skin = 'res/recharge/icon_diamond3';
        }else if(this.x==(320*3 + 30)){
            index = 3;
            this.reImage.skin = 'res/recharge/icon_diamond4';
        }
        var reChargeNum = ['10','50','100','200'];
        var shuoldPay = '';
        shuoldPay = reChargeNum[index];
        window.location.href = GM.qudaoUserFlag == "0" ? '/?act=payment&gameId='+gameId+'&tradeName='+tradeName+'&amount='+shuoldPay+'&redirect_uri='+redirect_uri : GM.qudaoChangeUrl;
    }
})(ui.Recharge.RechargeListUI);